package com.cuijq.ms.singleton.generator;

import java.util.concurrent.atomic.AtomicLong;

/**
 * @Classname IdGenerator4
 * @Description TODO
 * @Date 2021/5/5 9:47
 * @Created by CuiJQ
 */
public enum IdGenerator4 {

  INSTANCE;
  private AtomicLong id = new AtomicLong(0);

  public long getId() {
    return id.incrementAndGet();
  }
}
